package com.yuanfengerp.inventorycheck.formcheck.contorller;

import com.yuanfengerp.inventorycheck.formcheck.model.Checkmanagement;
import com.yuanfengerp.inventorycheck.formcheck.service.impl.CheckmanagementImpl;
import com.yuanfengerp.inventorycheck.missioncheck.service.impl.ChecktaskServiceImpl;
import com.yuanfengerp.publicUtil.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@CrossOrigin
public class CheckmanagmentCon {
    @Autowired
    CheckmanagementImpl ctsi;

    @PostMapping("/selectCheckmanagementAll")
    public Result selectCheckmanagementAll(@RequestBody Map<String ,Object> params){
        return ctsi.selectCheckmanagementAll(params);
    }

    @PostMapping("/addCheckmanagement")
    public Result addCheckmanagement(@RequestBody Checkmanagement checkmanagement){
        return ctsi.addCheckmanagement(checkmanagement);
    }

    @PostMapping("/select")
    public Result select( String document_ID){
        return ctsi.select(document_ID);
    }
}
